package com.rentplant.mapper;


import com.alibaba.fastjson.JSONObject;
import com.rentplant.Pojo.rentalcollect;
import com.rentplant.Pojo.rentalcollectanduser;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper  //申明作为底层交互
@Repository
public interface rentalCollectMapper {


    //查询该租房信息是否收藏
    public List<rentalcollect> rentalCollectById(JSONObject rentalinfo);

    //取消租房信息收藏
    public boolean delRentalCollect(JSONObject rentalinfo);

    //收藏物品
    public boolean addRentalCollect(JSONObject rentalinfo);

//    显示用户收藏的租房信息
    public List<rentalcollectanduser> showRentalCollect(JSONObject userinfo);
}
